import Cookie from 'cookie_js';

const adminToKen = "admin_token"

const usernameKey = 'username'

export function getToken() {
    return Cookie.get(adminToKen)
}
export function setToken(token) {
    return Cookie.set(adminToKen, token)
}
export function removeToken(token) {
    return Cookie.remove(adminToKen)
}
export function setUserName(value) {
    return Cookie.set(usernameKey, value)
}
export function getUserName() {
    return Cookie.get(usernameKey)
}
export function removeUserName() {
    return Cookie.remove(usernameKey)
}